package com.dayuanit.mars.map;

public class MarsMap {
	public static final int MAX_XPOINT = 9;
	public static final int MIN_XPOINT = 0;

	public static final int MAX_YPOINT = 9;
	public static final int MIN_YPOINT = 0;

	public static boolean checkMaxYpoint(Point point) {
		return MAX_YPOINT >= point.getYpoint() + 1;
	}

	public static boolean checkMinYpoint(Point point) {
		return MIN_YPOINT <= point.getYpoint() - 1;
	}

	public static boolean checkMinXpoint(Point point) {
		return MIN_XPOINT <= point.getXpoint() - 1;
	}

	public static boolean checkMaxXpoint(Point point) {
		return MAX_XPOINT >= point.getXpoint() + 1;
	}

}